<%--
  Created by IntelliJ IDEA.
  User: C
  Date: 2022/7/4
  Time: 10:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script>
        if(self!=parent){
            parent.location=self.location;//防止被套
        }
    </script>
</head>
<body>
<%
    if(session.getAttribute("USER_LOGIN")!=null){
        out.print("您已登录<a href='welcome.jsp'>首页</a>");
    }else {


%>
<%--<form action="dolenglu.jsp" method="post">--%>
<form action="login.do" method="post">
    <p style="color: red;">
        ${msg}
    </p>
    <p>
        <label for="loginname">登录名：</label><input id="loginname" type="text" name="loginname" size="40" required placeholder="请输入登录名" >
    </p>
    <p>
        密码：<input type="password" name="upass" placeholder="输入密码" required>
    </p>
    <p>
        <button>登录</button>
        <button type="reset">重来</button>
    </p>
</form>
<%
    }
%>
</body>
</html>
